<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>8-浮动布局-案例</title>
    <style>
        *{
            margin:0;
            padding:0;
            font-family: 'Micorsoft yahei';
        }
        .nav{
            height: 40px;
            background: #333333;
        }
        .banner{
            width: 1226px;
            margin: 0 auto;
            background: #ffc0cb;
            height: 100px;
        }
        .content{
            width: 1226px;
            margin: 0 auto;
            overflow: hidden;
        }
        .content div:nth-of-type(1){
            width: 234px;
            background: #f36;
            height: 460px;
            float: left;
        }
        .content div:nth-of-type(2){
            width: 992px;
            height: 460px;
            background: orange;
            float:right;
        }

    </style>
</head>
<body>
    <div class="nav"></div>
    <div class="banner"></div>
    <div class="content">
        <div></div>
        <div></div>
    </div>
</body>
</html>